package com.mmd.openfire_admin.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.mmd.openfire_admin.constant.ErrorCode;
import com.mmd.openfire_admin.pojo.ResponseMsg;

@Controller
@RequestMapping("/test")
public class TestController {
	
	@RequestMapping(value = { "/test.json" })
	@ResponseBody
	public Object checktel(HttpServletRequest request, HttpServletResponse response) {
		ResponseMsg retMsg = null;
		retMsg = new ResponseMsg("成功！", ErrorCode.OK, null);
		return retMsg;
	}
		public static void main(String[] args) {
		
	}
	
	
}
